import request from '@/utils/request'

export const fetchForgetList = (page, size) => {
  return request({
    url: '/forget-password/list',
    method: 'get',
    params: {
      page,
      size,
    },
  })
}

export const createForgetRequest = form => {
  return request({
    url: '/forget-password/add',
    method: 'post',
    data: form,
  })
}

export const updateForgetStatus = (id, status) => {
  return request({
    url: '/forget-password/update',
    method: 'post',
    data: {
      id,
      status,
    },
  })
}
